<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace app\meituan\controller;

use cmf\controller\AdminBaseController;
use think\facade\Db;

class AdminIndexController extends AdminBaseController
{
    public function index()
    {
        $info = cmf_get_option('meituan');
        $this->assign('info', $info);
        return $this->fetch('set/index');
    }

    public function sitePost()
    {
        $cmfSettings = $this->request->param('options/a');
        if (empty($cmfSettings)) {
            $this->error("数据错误！");
        }
        cmf_set_option('meituan', $cmfSettings);
        $this->success("保存成功！", '');
    }


}
